function outputNum(){
    var p = new Promise(function(resolve,reject){
        setTimeout(()=>{
            console.log(1)
        },1000)
    })
}
outputNum().then(function(data){
    console.log(data)
})